package com.yixing.tech.common.enums;

public enum ErrCode {
    SUCCESS(1000),
    //系统相关
    TOKEN_INVALID(1001),
    PARAMETER_EXIST(1003),
    PARAMETER_ERROR(1004),
    PARAMETER_EMPTY(1005),
    RESULT_EMPTY(1006),
    INTERNAL_SERVER_ERROR(1018),
    EXPORT_ERROR(1019),
    ERROR_NOTIFY(1020),

    USER_NOT_EXIST(3000),
    USER_PASSWORD_ERROR(3001),
    TENANT_FREEZE(3002),
    ROLE_EXISTED(3003),
    TENANT_EXISTED(3004),
    USER_EXISTED(3005),
    USER_NO_ROLE(3006),
    MENU_EXISTED(3007),
    PAGE_EXISTED(3008),
    APPLICATION_EXISTED(3009),
    ROLE_ERROR(3010),
    UNAUTHORIZED(3011),
    USERGROUP_EXISTED(3012),
    FILE_NOT_EXIST(3013),
    DATA_NOT_EXIST(3014),
    DATA_EXISTED(3015),

    COMMAND_SEND_ERROR(4000),
    COMMAND_ENCODE_ERROR(4001),
    CHANNEL_TYPE_ERROR(4002),
    GET_IOT_PALTFROM_ERROR(4003),
    DEVICE_REGISTER_ERROR(4004),
    AEP_DEVICE_CANCEL_ERROR_200(4005),
    DEVICE_CANCEL_ERROR(4006),
    BATCH_DEVICE_REGISTER_ERROR(4007),
    UPGRADEFILE_NOT_FOUND(4008),
    UPGRADE_ERROR(4009),
    UPGRADE_DUPLICATE(4010),
    OBJ_EXISTED(5001),
    OBJ_NOT_EXIST(5002),
    OBJGROUP_EXISTED(5003),
    PROFILE_NOT_EXISTED(5004),
    ENTITY_DUPLICATION(5005),
    OBJ_USEING(5006),
    MISS_CONFIG(5007),
    RECEIPT_OVER(5008),
    RECEIPT_CANCEL(5009),




    OPERATION_EXISTED(8002),
    MISS_PROCESS(8003),
    DUPLICATE_APPROVER(8004),
    MISS_APPROVER(8001);

    private int code;

    ErrCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }




}
